#include "mainwindow.h"

#include <QApplication>
#include <QDesktopWidget>
#include <QFile>
#include <QIcon>

int main(int argc, char* argv[])
{
    QApplication a(argc, argv);
    a.setWindowIcon(QIcon(":/icon/image/icon.png"));
    a.setOrganizationName(QObject::tr("Senna"));
    a.setApplicationName(QObject::tr("Senna Translator"));
    a.setApplicationVersion("1.0.0");

    QFile qss(":/qss/senna.qss");
    if (qss.open(QIODevice::ReadOnly))
        a.setStyleSheet(qss.readAll());

    MainWindow w;
    w.show();
    w.move(a.desktop()->width() / 3 * 2, a.desktop()->height() / 3);

    return a.exec();
}
